
import request from "@/utils/request";
class CategoriesApi {
  // 游戏类型
  static getList (data) {
    return request({
      url: "/api/admin/categories",
      method: "get",
      params: data
    });
  }
  static add (data) {
    return request({
      url: "/api/admin/categories",
      method: "post",
      data
    });
  }
  static put (data) {
    return request({
      url: `/api/admin/categories/${data.id}`,
      method: "PUT",
      data
    });
  }
  static del (data) {
    return request({
      url: `/api/admin/categories/${data.id}`,
      method: "DELETE",
    });
  }
}
export default CategoriesApi;